package ar.edu.unq.mongodbexample.model;

import com.google.code.morphia.annotations.Id;


/**
 * Clase abstracta que representa una Persona.
 * 
 * @author Nicolas Faure
 */

public abstract class Person {

	@Id int dni;
	
    private String email;

    private String lastName;

    private String name;

    public Person() {

    }
    
    public Person(final int dniNumber,final String lastName, final String name, final String email) {
    	this.setDni(dniNumber);
    	this.setLastName(lastName);
    	this.setName(name);
    	this.setEmail(email);
    }

    public int getDni() {
        return this.dni;
    }

    public void setDni(final int dni) {
        this.dni = dni;
    }
    public String getEmail() {
        return this.email;
    }

    public String getLastName() {
        return this.lastName;
    }

    public String getName() {
        return this.name;
    }

    public void setEmail(final String newVal) {
        this.email = newVal;
    }

    public void setLastName(final String newVal) {
        this.lastName = newVal;
    }

    public void setName(final String name) {
        this.name = name;
    }

}